package com.suning.app.snpaasadmin.pojo;

import java.io.Serializable;

public class CfRuntime implements Serializable {
    private Integer id;

    private String runtimeName;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRuntimeName() {
        return runtimeName;
    }

    public void setRuntimeName(String runtimeName) {
        this.runtimeName = runtimeName == null ? null : runtimeName.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CfRuntime other = (CfRuntime) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getRuntimeName() == null ? other.getRuntimeName() == null : this.getRuntimeName().equals(other.getRuntimeName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getRuntimeName() == null) ? 0 : getRuntimeName().hashCode());
        return result;
    }
}